//
//  LCFNetWorkRequest.h
//  lcf-newproject
//
//  Created by yangyang on 14-11-17.
//  Copyright (c) 2014年 yang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ResponseItem.h"
typedef NS_ENUM(NSInteger, LCFRequestMethods){
    LCFRequestGetMethod = 0,
    LCFRequestPostMethod
};

@interface LCFNetWorkRequest : NSObject


+(LCFNetWorkRequest *)shareRequestManager;
//通用的请求方法
//请求数据
-(void)sendAsynchronousRequestDataWithUrl:(NSString *)url
                parameters:(NSDictionary *)parameters
                   requestMethod:(LCFRequestMethods)methods
         completionHandle:(void(^)(ResponseItem * item))completionBlock
            failedHandler:(void (^)(NSError *error))failedBlock;

//根据url取消请求
-(void)cancelRequestWithUrl:(NSString *)url;
@end
